package org.wz.complex.work.entity.project.code;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.wz.complex.work.anno.Deploy;
import org.wz.complex.work.entity.project.database.DatabaseName;

@Deploy
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("project_code_java")
public class CodeJava {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String projectName;

    private String projectPath;

    private String templatePath;

    private String packageInfo;

    private Long parentId;   // DatabaseName

    @TableField(exist = false)
    private DatabaseName databaseName;

    private String giteeUrl;

    private String deploy;

}
